package com.studio49.exmple.core.config;

//import org.springframework.context.annotation.Bean;

//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;

/**
 * 
 * @author chensj
 * @date 2019年2月19日  上午9:42:11
 * @version 1.0
 */
//@Configuration
//@EnableSwagger2
public class SwaggerConfiguration {

//	@Bean
//	public Docket createRestApi() {
//		return new Docket(DocumentationType.SWAGGER_2)
//				.apiInfo(apiInfo())
//				.select()
//				.apis(RequestHandlerSelectors.basePackage("com.yingxinnet.youjiao.controller"))
//				.paths(PathSelectors.any())
//				.build();
//	}
//	
//	private ApiInfo apiInfo() {
//		return new ApiInfoBuilder()
//				.title("RESTFUL API DOC")
//				.description("Spring-Boot--RESTFUL风格的接口文档在线自动生成")
//				.termsOfServiceUrl("http://blog.csdn.net/appleyk")
//				.version("1.0")
//				.licenseUrl("http://localhost:8080/")
//				.build();
//	}
	
}
